fix escaping of % in windows