Fix encoding
Encode only for Ruby >= 1.9
gosh darn you, stop blowing up