Merge pull request #460 from haberman/encode-required

Added required field checking into the encoder