Conversion to sparse lines

Variant of netLine, which supports empty lines, useful for
protocols like HTTP, in which empty lines have a special meaning.
This function splits the input stream by LF characters while ignoring
CR characters.