public static byte[] toAscii(byte[] data) {
		byte[] ret = data.clone();
		for (int i = 0; i < ret.length; i++) {
			if (ret[i] < 0x20 || 0xff <= ret[i]) { ret[i] = '.'; }
		}
		return ret;
	}
@param input
@param hexPattern
@param hexReplace
@return
src/main/java/core/packetproxy/common/StringUtils.java