reworked slugify, added two alternative methods