added safe slugify feature