Change the LineEndings onsave instead of onload

If using auto_convert_line_endings_to, files are not marked as edited after opening