private String convertHexChars(StringBuilder name) {
        // we need to search for an instance of # and try and convert to hex
        try {
            for (int i = 0; i < name.length(); i++) {
                if (name.charAt(i) == HEX_CHAR) {
                    // convert digits to hex.
                    name.delete(i, i + 3);
                    name.insert(i, convert(name.substring(i + 1, i + 3)));
                }
            }
        } catch (Throwable e) {
            logger.warning("Error parsing hexadecimal characters.");
            //  we are going to bail on any exception and just return the original
            // string.
            return name.toString();
        }
        return name.toString();
    }