Fix db charset problem