Only use mb_detect_encoding() if no charset is set in HTML