Convert text to URL-friendly slugs.
A slug is the part of a URL that identifies a page in a human-readable format. For example, in the URL "example.com/blog/my-first-post", the slug is "my-first-post".