force_encoding is not defined in ruby 1.8