It's not exactly the same, it does a few extra things. It is, however, what is used for generating document slugs so it would make sense to use it for other slugs