Fix regexp throwing invalid exscape character on windows.