Added a better function for slugify