I do something similar to convert supposed plain text to 7-bit US-ASCII. I use a sed script however...
edit: especially since unicode support allows for use of native Klingon fonts.
[1] : https://www.gnu.org/software/poke/
[2] : https://kernel-recipes.org/en/2019/talks/gnu-poke-an-extensi...