We might want to add another enum method to actually do the formatting.

Something like `public String format(byte[] bytes)` which can do the switch. That way the consumers (ServerValueEncoder, formatAsJson) don't have to have a switch.