Fix KAutoSave bug on file with white space in it
Differential Revision: https://phabricator.kde.org/D8084