simplify encoding splitter and support whitespace inside encoded

@bf4 @jeremy @mikel 

also some performance/GC improvements
If we're going to reuse the regexp, makes sense to set a constant rather than recreate the a new regexp per method call.