use proper "const" declarations for unicode conversion functions to simplify interaction with C++
add test for auto-encoding with C++ std::string
fix ascii auto-encoding in Py3.3