Turns text into a lower-case, hyphen-separated identifier fragment.
the text to turn
the slug, or x when nothing is left
x
Turns text into a lower-case, hyphen-separated identifier fragment.