encode recipients, cc, bcc, reply_to + fix tests