Fixing unicode URLs

Switching from urllib.urlencode to Django's unicode-safe version
because otherwise URLs with things like u'\u20ac' crashed the
entire thing.