Handle encoded data