Use a common function to parse all pathnames from the wire. This allows