Use Pathname for paths, not string-munging.