Fix fir errors on non-ascii characters in text