parse the server url from the app, fixed a small bug for illegal character in the url
encode the request url to avoid problem in the server