Bug 11718 - incorrect parsing of UTF-8 files

Summary: incorrect parsing of UTF-8 files