Handling of BOM files with search pattern for specific bytes

This branch introduces a fix when handling files produced with Byte Mark Order (BOM) as mentioned in Issue #13.