text: public static void Encode(StringBuilder urlstr, string key){if (key == null || key.Length == 0){return;}try{urlstr.Append(URLEncoder.Encode(key, "UTF-8"));}catch (UnsupportedEncodingException e){throw new RuntimeException(JGitText.Get().couldNotURLEncodeToUTF8, e);}}