Move entry serialization back to ByteBufWriter