Empty parameter value is encoded as b'parameter\0\0', so we can't simply read the data until b'\0\0', because it isn't necessary event end. Instead, read event parts separately, according to specification.