ruby 1.8.7 BC patch - Force encoding only for ruby 1.9