Update encoding for clouddb