public static string Encode (string str, string encoding) { return HttpUtility.UrlEncode (str, Extensions.GetEncoding (encoding)); } }