Mb_detect_encoding / Mb_convert_encoding

* On some servers mb_detect_encoding and mb_convert_encoding is not
available, added functions as alternative (milos)