fix rename immediately after duplicate
add scrubName function which can be overridden e.g. to replace spaces with dashes