Using encodeURIComponent for jsonp

We haven’t been URI-encoding for jsonp but should be. This change fixes that.