Stop using the string returned by XLookupString because it often contains garbage.