setHost() and setScheme() are not used when building URLs