When renaming attachment files, keep file extension if not provided

Re comment in https://forums.zotero.org/discussion/33479#Item_15