Fixed support for python3.2, do not use PyUnicode_AsUTF8 (just emulate it).