private function convertToUtf8(string $string, string $charset = '') : string
{
// Imap_mime_header_decode returns "default" in case of ASCII, but we make a detection for sure
if ('default' === $charset || 'us-ascii' === $charset || empty($charset)) {
$charset = \Jyxo\Charset::detect($string);
}
return \Jyxo\Charset::convert2utf($string, $charset);
}