make sure namespaced kw are properly encoded