solve some character problems.