Packet encoding no longer throws an exception