urlencode redirected urls