detect as UTF16/32 when BOM is found