fixes #18: windows line ending support, as suggested by @josher19