KAZOO-2183: adding sanitizing function to enforce only correct values out of couch