Fix encoding of mail headers content-type and content-type-encoding

for single-part mime mails.

See issues/5128