Replace any kind of line break (LF, CRLF or CR) instead of relying on platform specific PHP_EOL