Add an alert encoder to make the alert messages easier to read

- Clean up the encoder related documentation