special character conversion without unpack