Encoding test is invalid in Ruby 1.8.