dynamic/per thread namespace
escaping/unescaping strings in prov-n (more cases to consider I think)