fixed problem with reading BOM'med UTF-8 files