Url encode the text sent to the server.