change encoding so this will work on Ruby 1.9.3