Add charset_from_locale(), a best-effort attempt to return the