removed duplicate urlencode