mac fixes to not open UTF16/32 files suspected of not having a BOM