--- libxml2-2.6.26/xmlIO.c.orig-unesc	2006-05-02 18:25:00 +0400
+++ libxml2-2.6.26/xmlIO.c	2006-06-11 19:00:13 +0400
@@ -2368,7 +2368,8 @@
 	/*
 	 * try to limit the damages of the URI unescaping code.
 	 */
-	if (puri->scheme != NULL)
+	if ((puri->scheme == NULL) ||
+	    (xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
 	    unescaped = xmlURIUnescapeString(URI, 0, NULL);
 	xmlFreeURI(puri);
     }
