I'm not seeing how a Regex would help anything.  It can still only do one replace at a time.  Even if there were some magical regex syntax that could do it all at once, you're still better off not invoking Regexes in a slow, low-memory mobile app when a few simple string.Replace calls will do.As others pointed out, if HttpUtility were available then this would be redundant, but it's not in Mobile.Now, this code is wrong, particularly on the Decode method, but the principle is sound enough.