PHOENIX-1369 Mark encode/decode methods as deprecated