Fixed deep copy of encoded data.