Set file extension in filepicker to avoid silent overwrites (#124)

Fix for #124.

Please check it on OS X too!
I tested on Windows and Linux. It seemed legit to me.
STR is in the issue!