simplify encoding splitter and support whitespace inside encoded