ensure uri-escaping the keys