Fix detection of UTF-8 BOM encoding.
Merge pull request #32 from atbest/patch-2

Fix detection of UTF-8 BOM encoding.