fix encoding of fields and attachments as well, specify output stream as UTF-8