solve some character issues