add encoding detection by BOM code for utf-16 and utf-32 (with BOM)