static string Decode(string s) { if (s == null) return null; for (var i = 0; i < s.Length; ++i) { if (s[i] == '%') return Decode(s, i); } return s; }