Mail sending fails with quoted&encoded e-mail addresses
Trying to send e-mail from addresses like `"Cālis.lv" <email@example.com>` fails with "Validation failed for ..." message. The problem is that t3lib_div::encodeHeader places encoding markers before quoues and produces the following:
The correct would be:
Later t3lib_mail_Rfc822AddressesParser does not see this as a quoted string and fails with an exception.
The solution is to fix the t3lib_div::encodeHeader to move quotes outside of the quoted value.