Add slugify function.