add six working tests of choose_charset