It might be better to use this [1] django unicode helper as @glogiotatidis has suggested.

[1] https://docs.djangoproject.com/en/dev/ref/unicode/#uri-and-iri-handling