use peek to make EachLine iterate in phase with file position. fixes #2051