fixed issue 307: namespaced script ids not working

* colons in class names had to be escaped
* colons in URLs had to be encoded