Use django.utils.http.urlquote as it also handles unicode characters