Ensure document keys can't contain NULL character (JAVA-891)