Encode the URL