Optimizations in Basic.pm (removing regex).

Just checking the last character of the line and chopping it off is
~3.5x faster than running s/[\n\r]$//g.
Merge pull request #242 from mmcclimon/optimize_basic

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