nextTick on encode/decode