Fixed #8149 -- Use universal line terminators when iterating `File` obje...

...cts line-by-line.