It is a little strange but as you say URI.join seems well-designed to do the job.