EncoderRegistry method signatures compatible with symfony EncoderInterfa...

...ce/DecoderInterface