Change files to LF line endings and UTF-8 BOM when possible