Fix #791 (wrong abstraction name in save abstraction operation).
The save abstraction operation must use the basename without the extension for the object name. This regression was introduced in rev. 752294af, the present commit corrects this while still preventing string overflows.
Fixes #791 (closed).