We should add support for custom encoders and decoders, analogous to https://docs.dbos.dev/python/reference/contexts#custom-serialization