This change ensures that the relabeling configurations using labelmap can't generate invalid label names.