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