Account for carriage return on windows

Fixes #3