use encodeURI() instead of the deprecated escape()
config.sessionId is in this.shinyapp instead of this