Added function for path/url sanitization on windows