This change fixes how xmobar prepares strings before passing them to Xft for UTF-8 drawing. Instead of always mapping characters directly to code points, it now checks whether the string is already UTF-8 encoded and only runs explicit encoding when needed. That should avoid incorrect text rendering for some inputs while preserving the fast path for valid UTF-8 strings, making font drawing more reliable in practice.

Updated Xft string rendering to encode text conditionally so already-UTF8 strings and non-UTF8 input are handled correctly. - zhengqunkoo/xmobar