Fix transcoding to UTF-16

Check the destination encoding, not the source one.