fix api widget urlencode bug