slugify function + cli