Provide a more efficient method for reading lines (or null terminated sequences) when the input is seekable. Another partial fix for #2007