Don't use const for strings returned in allocated memory.
Strip metadata from JSON dumps if if cannot be passed to WT_SESSION::create.