diff --git a/lib/Address.php b/lib/Address.php index aaac62adf1..c45c87d701 100644 --- a/lib/Address.php +++ b/lib/Address.php @@ -66,7 +66,8 @@ public function getLabel(): ?string { * @return string|null */ public function getEmail(): ?string { - return $this->wrapped->bare_address; + // Lets make sure the e-mail is valid UTF-8 at all times + return iconv("UTF-8","UTF-8//IGNORE", $this->wrapped->bare_address); } /**