retry char encode