Fixed saved filename issue.

Closes issue #1296 : fix issue causing waypoint and parameter files to be saved as '.txt' when the user selects the default filename.