Add encoding flag to document preparation
Merge pull request #9 from MJJoyce/encoding-support

Add encoding flag to document preparation