Restore line endings to match original