add more robust slugging