fix utf8 problem to support Ruby 1.9.3