Using jcode you can make regular expressions UTF-8 aware
$KCODE = 'u' require 'jcode' class String def reverse scan(/./).reverse.join end end puts "asd".reverse