Added `@encode` setting, validation, and implementation.  Closes #4.