Fix for bug #432384: Recursion in PyString_AsEncodedString?
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index da49d81..bcf5147 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -265,7 +265,7 @@
 {
     PyObject *v;
 
-    v = PyString_AsEncodedString(str, encoding, errors);
+    v = PyString_AsEncodedObject(str, encoding, errors);
     if (v == NULL)
         goto onError;