URL Escaping node name

ES generates node names with spaces in. The spaces make the fetch fail, but encoding them in the config file causes the node name check to fail, so URL encoding them.
Indication of how to format node name with spaces in config
Merge pull request #4 from rvavruch/master

Update to handle node names with spaces in them