Only do encoding magic if mb_detect_encoding is available