Ruby 1.8.7 doesn't have access to encode! method