Fix: files saved with asterisk in filename

Needed to improve the way names and paths are stored to be able
to differentiate between name and string shown in tree view.