deal with UTF-8 BOM