simplify and generalize deh_allow_extended_strings usage