Replaced base64 encoding of url before submit with urlencode