detect if mb_detect_encoding exists