Fix encode() result handling
Fix encode() result handling

arv/text-encoding-utf-8,coolaj86/TextEncoderLite,otoense/text-encoding,rschuchart/TextEncoderLiteModule,coolaj86/TextEncoderLite,rschuchart/TextEncoderLiteModule,paddymahoney/text-encoding,foolin/text-encoding,otoense/text-encoding,eugenpodaru/text-encoding,arv/text-encoding-utf-8,paddymahoney/text-encoding,auvik/text-encoding,foolin/text-encoding,auvik/text-encoding,eugenpodaru/text-encoding