Encode reply packets