Use Encoding classes to represent encodings.

When using strings to represent encodings, typos may be discovered while running the code.  However, a typo in the Encoding constant raises an error at load.