Only patch the encoder if it was found.
Add some debug information to the mssing decoder/encoder exception.