protected function utf8ize($mixed)
	{
		if (is_array($mixed))
		{
			foreach ($mixed as $key => $value)
			{
				$mixed[$key] = self::utf8ize($value);
			}
		}
		else if (is_string ($mixed))
		{
			return utf8_encode($mixed);
		}

		return $mixed;
	}
protected function utf8ize($mixed)
	{
		if (is_array($mixed))
		{
			foreach ($mixed as $key => $value)
			{
				$mixed[$key] = self::utf8ize($value);
			}
		}
		else if (is_string ($mixed))
		{
			return utf8_encode($mixed);
		}

		return $mixed;
	}
protected function utf8ize ( $ mixed ) { if ( is_array ( $ mixed ) ) { foreach ( $ mixed as $ key => $ value ) { $ mixed [ $ key ] = self :: utf8ize ( $ value ) ; } } else if ( is_string ( $ mixed ) ) { return utf8_encode ( $ mixed ) ; } return $ mixed ; }
Clean the array passed in from UTF8 chars.

Lifted from http://stackoverflow.com/questions/10199017/how-to-solve-json-error-utf8-error-in-php-json-decode
Based on: http://php.net/manual/en/function.json-last-error.php#115980

@param $mixed
@return array|string
Clean the array passed in from UTF8 chars .