Support multiple line endings. Closes #35

This seems to do the trick :smile: