Encode HTML body