>>403

23 $det_enc = mb_detect_encoding($string, $from . ", " . $to);

って

23 $det_enc = mb_detect_encoding($string, $from, $to);

じゃないの?