update utf8 BOM handling