Replacing guts of IO#each_line to use internal buffer

and altering the tests to (correctly?) assert the line separator is
included.