Modified version for CP949 Encoding