Fix encoding issues with Ruby 2.0 (#87).