url.py: Double encodes hostname to work around issue 21103.

Closes chfoo/wpull#82