plug-ins: port file-ps' saving code to GIO