fix charset bug and add test h2 db