Use new StringDocument instead of LegacyDocument in CouchbaseWrapper.