improved sluggify functionality, thanks @doctorjuta