Saving files before trying to refresh line endings