Convert newlines to UNIX-style

Fixes #586
Merge pull request #587 from jaredhoberock/issue-586

Convert newlines to UNIX-style