MISC - Fix encode error in ruby 1.9