fix invalid icon mimetype + remove BOM header