remove BOM and fix EOL