add urlencode method