GH-128520: pathlib ABCs: fix with_name() handling of empty names
#130964
+13
−16
with_name() handling of empty names
#130964