Fixes \r\n line breaks

Fixes case where lines are delivered with \r\n line breaks.