Use byte[] instead of single byte for telnet received data