Revert "encode"

This reverts commit f14b5cb96b50ad2fa0b4968ca35bddeed4bc0239.
add ins