fixed urlencode bug