add urlencode sample code