Fix line splitting on windows

Split line breaks on all operating systems (`\r\n`, `\r` and `\n` instead of just `\n`).