[readme] fix encode example code