Fix memory corruption in wx locales handling on UTF8 system with iconv