Force strings to actually be binary strings when encoding

I was having encoding issues with jruby and string literals; this fixes that.