CSHARP-603: added security attributes to methods to mark them as SecurityCritical or SecuritySafeCritical, depending on context.
CSHARP-694: Provide a way to be more lenient about UTF8 validity.