Add custom encoders and decoders