Fixing encoding error with Ruby 2.0. #19