Added encoding parameter to PlainTextFormatter

PlainTextFormatter doesn't support Unicode so I have added the ability to specify a encoding when one is created.