PHOENIX-1369 Add back encode/decode methods as deprecated