supports different encoding types for mails