Uses the correct linefeed for Unix/Windows

Not sure how to test this, but the existing test still passes and I know it will work on windows now.