Fix slug generation to prevent collisions.