Add newline agnosticism to win32 implementation.