repair line endings