Added the encoding of the url to be auto generated based on the message and other values of the JSON.