Switch to Django 1.5 pattern name in encoded_url

This change is not compatible with Django 1.4.