Fungal endophytes trigger photoprotective mechanisms in plants