Encode/decode working everywhere now.