Make sure that char* type functions produce 'str' output on Python 2.

Fixes #27.