simplify encoding splitter and support whitespace inside encoded
Merge pull request #776 from zendesk/grosser/double-strip

simplify encoding splitter and support whitespace inside encoded