make encoding test pass under ruby 1.9