Fix encoding error with Ruby 2.0