/// <summary>
        /// Gets the default encoding to use as initial guess.
        /// </summary>
        /// <param name="context">The current context.</param>
        /// <returns>The encoding from the provider or UTF-8.</returns>
        public static Encoding GetDefaultEncoding(this IBrowsingContext context)
        {
            var provider = context.GetProvider <IEncodingProvider>();
            var locale   = context.GetLanguage();

            return(provider?.Suggest(locale) ?? Encoding.UTF8);
        }