Replace Japanese characters with the encoded hexadecimal values