LPS-34589 Fixes name escaping for select_site
LPS-34589 escape all the events too and support for changing the event namespace from the js side