Malformed UTF-8 character: \xa4 (unexpected continuation byte 0xa4, with no preceding start byte) at /tmp/a.pl line 3 Malformed UTF-8 character: \xe4\x22\x20 (unexpected non-continuation byte 0x22, immediately after start byte 0xe4; need 3 bytes, got 1) at /tmp/a.pl line 7.