Replaces spaces in filename with dashes

Without this the file name gets cut off in Firefox