save files before refreshing line endings