Convert a non-slug-case string to a slug-case string.