Save files before refreshing line endings