public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void encodeSlashes() {
    String template = "https://www.example.com/{path}";
    UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
    Map<String, Object> variables = new LinkedHashMap<>();
    variables.put("path", "me/you/first");
    String encoded = uriTemplate.expand(variables);
    assertThat(encoded).isEqualToIgnoringCase("https://www.example.com/me%2Fyou%2Ffirst");
  }