Fix bug #22267 - smart_urlquote was incorrectly unquoting url

https://code.djangoproject.com/ticket/22267