use urlencode not rawurlencode