Corrected strings encoding for Ruby 2.0
Compatibility with Ruby 1.9.2 ok