Fix description for Encode

It looks like the documentation comment for `Encode` was just copied from `Decode`. This changes the documentation comment to reflect what `Encode` actually does.