Fix signed vs. unsigned confusion in name sanitisation