Properly encodes special characters in live monitoring url.

Without encoding special characters, urls with spaces will cause exceptions. Also, some log messages are improved.