Support for UTF-8 non-Latin characters?

I am trying to export a PDF in non-Latin characters. It displays correctly in the Retool dashboard, but when downloaded using utils.downloadPage, the characters get messed up and disjointed. Is there a way to enable UTF-8 support or other way to get the characters to export to PDF correctly?