Improve memory usage with UniversalNewlineIterator