remove BOM from ts references