Change the LineEndings onsave instead of onload

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