slugify connection name, since mongodb doesn't allow dots in fields