Normalizing encoding by using textlib synonyms - parse_charset() Credit goes to Petr.
Normalizing encoding by using textlib synonyms - parse_charset()
Credit goes to Petr.

Merged from MOODLE_18_STABLE

dilawar/moodle