Fixed PCRE locale crash in Windows/TS