urlencode was missing