fix accents removal for Windows and MacOS portability