Make httpClient.SetPrefix safer