fix for incorrect conversion of json to strict bytestring for timetoken