Update mb_detect_encoding function check
Merge pull request #761 from eddturtle/master

Update mb_detect_encoding function check