Added code to detect BOM and search UTF-16 files