Use `JsonEncoder` instead of `.toString()`

This updates `AvroConfigurationSerializer` to use `JsonEncoder` instead of `.toString()` to generate the String version of a `Configuration`.