fix issue causing waypoint and parameter files to be saved as '.txt' when the user selects the default filename.
Merge pull request #1297 from ne0fhyk/fix_issue_1296

Fixed saved filename issue.