Encode url, for convenience.