Fix work with bytes in parseMessage.