Fix for UTF-8 and Ruby 1.9