public static String UrlEncode(String s) { #if !NETCF return HttpUtility.HtmlEncode(s); #else return Uri.EscapeUriString(s); #endif }