add String#force_encoding for Ruby 1.8