Slugify a given attribute of an entity

replaces all non alphanumeric characters (A-Za-z0-9) and dashes (-) with a single dash