Fix obvious problem in UTF-16 encoder.

Who knows what more may lurk... :-)
First pass at encode/decode ops.

Right enough to pass 82-decode.t, at least.