port stringencoders from https://code.google.com/p/stringencoders/

port stringencoders from https://code.google.com/p/stringencoders/
This library has many high performance string util functions.