legacy slugify