fix encoding

set codepage setting

implement jtrans for lua