add os check to create valid windows filenames