@Nonnull
	public static StringDecodingResult decodeString(@Nonnull byte[] data, @Nonnull Charset encoding) {
		int bytesToChars = 1;
		if (encoding == StandardCharsets.UTF_8)
			bytesToChars = 2;
		else if (encoding == StandardCharsets.UTF_16 || encoding == StandardCharsets.UTF_16BE || encoding == StandardCharsets.UTF_16LE)
			bytesToChars = 2;
		else if (encoding == StandardCharsets.UTF_32 || encoding == StandardCharsets.UTF_32BE || encoding == StandardCharsets.UTF_32LE)
			bytesToChars = 4;
		return decodingResult(data, encoding, bytesToChars);
	}
@param data
		Some data to decode.
@param encoding
		Encoding to decode with.

@return String decoding result. Check {@link StringDecodingResult#couldDecode()} to determine if successful.
recaf-core/src/main/java/software/coley/recaf/util/StringUtil.java