Fix xml file saving on Windows
Patch sent by: ocoole Differential Revision: https://phabricator.kde.org/D13465