By first trimming and then transliterating, characters which need two
characters to represent would cause the rendered text to get out of
alignment. An example can be seen by running:
$ LANG=C ./tig 2324d61
Fix the misalignment by reversing the operations so that text is trimmed
after it has been transliterated.