public static String getAutoDecodedString(byte[] data, String defaultEncoding) throws IOException {
		return new String(data, detectEncoding(data, defaultEncoding));
	}
Decode the byte array with auto encoding detection feature.

@param data            byte array
@param defaultEncoding the default encoding if no encoding is sure.
@return decoded string
@throws IOException occurs when the decoding is failed.
ngrinder-controller/src/main/java/org/ngrinder/common/util/PropertyUtils.java