public string GetSafePath(string filename) { return string.Join("_", filename.Split(Path.GetInvalidPathChars())); }