Remove characters that are invalid for file names
[System.IO.Path]::GetInvalidFileNameChars() | % {$text = $text.replace($_,'.')}