Fix bug #22267 - smart_urlquote was incorrectly unquoting url

Bug url - https://code.djangoproject.com/ticket/22267