print user friendly message on error
urlencode params