Normalize line endings

Closes #308