fixed ruby 1.9 invalid multibyte char