Added release of byte buffer in PacketEncoder.java