iconv - Detectou um caractere ilegal na string de entrada

Não vejo nada de ilegal - alguma sugestão sobre qual pode ser o problema?

    if (strtolower($matches[1]) != 'utf-8') {
        var_dump($matches[1]);
        $xml = iconv($matches[1], 'utf-8', $xml);
        $xml = str_replace('encoding="'.$matches[1].'"', 'encoding="utf-8"', $xml);
    }

Abaixo está o meu debug / error

string(12) "windows-1252"
Notice (8): iconv() [http://php.net/function.iconv]: Detected an illegal character in input string [APP/models/sob_form.php, line 16]

Verifiquei que o código acima é realmente a linha 16