As an aside, the BOM is not recommended in UTF8.
Microsoft decided to shove it into files to differentiate them from the ASCII text UTF8 is intentionally compatible with (breaking this compatibility), even if no other content in the file requires such a distinction. The BOM is meant for wider encodings like UTF16 or 32.
Wikipedia said:"The Unicode Standard 5.0, Chapter 2:General Structure" (PDF). p. 36. Retrieved 2008-11-30. Use of a BOM is neither required nor recommended for UTF-8, but may be encountered in contexts where UTF-8 data is converted from other encoding forms that use a BOM or where the BOM is used as a UTF-8 signature
Microsoft decided to shove it into files to differentiate them from the ASCII text UTF8 is intentionally compatible with (breaking this compatibility), even if no other content in the file requires such a distinction. The BOM is meant for wider encodings like UTF16 or 32.