Default save filename should be valid (ending with .gpx) andinvalid filename should be checked before starting to save

When saving the .gpx tracks of a directory the default filename is the name of the directory, which does not end with suffix .gpx.FileNameShouldBeCheckedBeforeAttemptingToSave