Run slugify only if enabled by setting. Refs #569