Create slug utility function.