Q:

Chef Escaping ascii for Windows Registry Input

Using Chef to create a registry value for IIS8.5 SSL Binding as the only way I've found to create this value is through the IIS Manager.
I'm trying to use the following in the windows cookbook, but am having trouble escaping characters inside the data portion of this binary data.  \, ', " don't appear to work here.
registry_key "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HTTP\\Parameters\\SslCcsBindingInfo\\443" do
    values [{:name => "AppId", :type => :binary, :data => "?áAMKá!J°"Yüf> ¶"},
            {:name => "CertStoreLocation", :type => :binary, :data => ""}
           ]
    action :create
end

A:

For encoding binary data you are probably best off either using a base64'd string literal:
require 'base64'
values [{:data => Base64.decode64("YmluYXJ5ZGF0YQ==")}]

or using the \x escape sequence:
values [{:data => "\x45\xA0\xFF\x00"}]

