fix for [#6580] invalid file names not handled consistently when saving only affects windows, where invisible file stream could be created if filename contains ':'