fileutils: Avoid crash if g_set_prgname() has not been called
fileutils: Avoid crash if g_set_prgname() has not been called

While we're here, also squash spaces in the filename to '_'.

GNOME/libgsystem,GNOME/libgsystem,Distrotech/libgsystem,Distrotech/libgsystem