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

#2880