private static function utf8_encode(&$mixed)
    {
        if (is_array($mixed) || is_object($mixed)) {
            foreach ($mixed as &$value) {
                self::utf8_encode($value);
            }
        } else {
            if (is_string($mixed)) {
                $mixed = utf8_encode($mixed);
            }
        }
    }