remove BOM from tpl