I found an elegant solution here: https://forum.arduino.cc/t/utf-8-string/690427/5
I tested it (the function can be incorporated into the code), and I use it.