support encoding std::strings, and also alow them as dictionary keys
Merge pull request #1 from arvidn/master

support encoding std::strings, and also alow them as dictionary keys