fix urlencode bug