Utils.slugify: Don't create new objects when gsubbing

Ref. #2880