jcode.rb - ruby code to handle japanese (EUC/SJIS) string