Normalize line endings to LF

Closes #1539