#462 fix, remove leading and trailing dashes from urlized slug. includes test changes