Ruby 2.0 encoding fixes.

I've made some fixes to deal with ruby 2.0 encoding issues.

I also bumped the gem version.