Introduce mb_detect_encoding fallback that scans the entire charset stack
if initial small-set detection fails