Fixed bug #1459029 - unicode reprs were double-escaped.
Backed out an old patch from 2000.
diff --git a/Objects/object.c b/Objects/object.c
index 3404c35..63fb4fd 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -316,7 +316,7 @@
 #ifdef Py_USING_UNICODE
 		if (PyUnicode_Check(res)) {
 			PyObject* str;
-			str = PyUnicode_AsUnicodeEscapeString(res);
+			str = PyUnicode_AsEncodedString(res, NULL, NULL);
 			Py_DECREF(res);
 			if (str)
 				res = str;