text: public static void encode(StringBuilder urlstr, String key) {if (key == null || key.length() == 0)return;try {urlstr.append(URLEncoder.encode(key, UTF_8.name()));} catch (UnsupportedEncodingException e) {throw new RuntimeException(JGitText.get().couldNotURLEncodeToUTF8, e);}}