simplify encoding splitter and support whitespace inside encoded

@bf4 @jeremy @mikel 

also some performance/GC improvements
Justification for dropping the "plain string" alternative from the regexp?