I'm not 100% sure, but I think this is because in Src/Modules/pcre.c the state of UTF-8 parsing is cached and only changes when the MULTIBYTE option is different upon re-entry. Changing the locale doesn't have that effect.