More encoding for Ddocs