Normalize line endings (issue #1864)