Characterization of the melanin pigment of a cosmopolitan fungal endophyte.