replace spaces in filename to make URLs valid for #3273