private static string Encode(string name) { return name == null ? null : Uri.EscapeDataString(name); } }