Fix bug with unicode URLs.

Percent escape URL string before creating the URL.