note that it strips BOM automatically