Fixed encoding issue regarding multi-byte characters returned from XLookupString.