@Override
    public String getNewTicketId(final String prefix) {
        val number = this.numericGenerator.getNextNumberAsString();
        val ticketBody = this.randomStringGenerator.getNewString().replace('_', SEPARATOR);
        val origSuffix = StringUtils.defaultString(this.suffix);
        val finalizedSuffix = StringUtils.isEmpty(origSuffix) ? origSuffix : SEPARATOR + origSuffix;
        return prefix + SEPARATOR + number + SEPARATOR + ticketBody + finalizedSuffix;
    }
Due to a bug in mod-auth-cas and possibly other clients in the way tickets are parsed,
the ticket id body is sanitized to remove the character "_", replacing it with "-" instead.
This might be revisited in the future and removed, once at least mod-auth-cas fixes
the issue.

@param prefix The prefix we want attached to the ticket.
@return the ticket id
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/util/DefaultUniqueTicketIdGenerator.java