in reply to display of utf8

You should binmode DATA; You shouldn't rely on your terminal, you should use hexdump or od