Urlencode location.

Fix for issue #4.