Compatibility fix for Py_UNICODE* support.

Don't use UTF-32 codec because it is missing from Python 2.4/2.5.