Issue 2: TestClientDialogs.cshtml should encode the json before outputting it.