Add JSON serialization notations to avoid serializing Charset type (use ...

Fixes issue where messageEncoding is rendering as messageEncoding: {} rather than messageEncoding: "abc".