fork of [stringencoding](git clone https://code.google.com/p/stringencoding/)