correcting line endings