Passed through John Sundell’s Constructing URLs in Swift.