Added unit tests for Byte Order Mark

Added test data file with UTF-8 encoding, along with test functions to test file with BOM and plain file contents that does not have a BOM.