public String getString(Charset charset8, Charset charset16) {
		if (byteString == null) {
			int index;
			switch (typeSize) {
				case 2:
					byteString = new String(byteArray, charset16);
					break;
				case 1:
				default:
					byteString = new String(byteArray, charset8);
					break;
			}
			for (index = 0; index < byteString.length(); index++) {
				if (byteString.charAt(index) == '\u0000') {
					byteString = byteString.substring(0, index);
					break;
				}
			}
		}
		return byteString;
	}
This class represents "string" within a Microsoft mangled symbol.
Ghidra/Features/MicrosoftDmang/src/main/java/mdemangler/MDString.java