reset encode/decode after setting