Quick! How many ways are there with .NET Core to encode parts of a URL? Here's a list I came up with. HttpUtility.UrlEncode - This is part of System.Web, so primarily used within a web application. WebUtility.UrlEncode - Part of System.Net so it can be used outside of a web application.