locale-sensitive (use ICU's ulocdata) stri_enc_detect2 (major revision)