Tiny optimization (removing regex in Basic.pm, next_text)

If we chop off the trailing [\r\n] in a while loop and a `substr`, it's roughly 3x faster (as far as I can tell) than doing an `s/[\r\n]+//`, since it doesn't have to copy the string. It's not much, but it should help a bit in large directories.