The mb_chars code was legacy 1.8 that I left in there.  That's why it's in the elsif Encoding is not defined.