Added unique id mode to slugify text as id and return a unique id

This is useful when generating slugified name used as id that must be unique.