Fixed #3127 Use mb_convert_encoding when available