See http://gimite.net/gimite/rubymess/moji.html