finish encode/decode