fix utf8 for ruby 1.9 and ruby 2.0