Stub out encode call for ruby 1.8.