MDL-48779 MNet: multibyte substr in certificate generation
MDL-48779 MNet: multibyte substr in certificate generation

Using core_text::substr instead of substr for trimming certificate
data. Is needed for sites with long unicode sitename to prevent
breaking line between unicode pair.

dilawar/moodle