test: add test that regenerates patches with spaces in filename This currently crashes, proposed fix in subsequent commit.