Convert the selected text to a slug.