When saving a file that would overwrite an existing file on disk, implement a confirmation prompt to prevent accidental overwrites. Suggested in #124.