$KCODE = 'u' require 'jcode' class String def reverse scan(/./).reverse.join end end puts "asd".reverse