Encode the URL.