Properly encodes special characters in live monitoring url.

Currently, live monitoring does not work when a url containing a space is entered. This commit fixes that issue.