yet another attempt at escaping strings on windows