CSHARP-930: Handle dictionary keys with null characters.