Replace spaces with _ in user supplied filenames