remove check for UTF16/32 when there is no BOM