Encode URL before sending as a param