in reply to PDF decoding in Perl
you might find this useful UTF-8 text files with Byte Order Mark. also https://en.wikipedia.org/wiki/Byte_order_mark
both FEFF and 0000FEFF seem to be BOM's