Introduce split-lines and slurp-lines utility functions.