It is set by URI.parse but it does leave it weird for later.  The other possibility is what I just did which is to set both socket and path to the same value and then use them differently later on.