fix name for mongoDb updates (key can't contain . or $)