foreach ($row as $key => $val) {
                    $row[$key] = convert_to_utf8($val);
                }