[fix] fix TextEncoder/TextDecoder's constructor problems.

So the logic idea is if `this` don't have the encode/decode function, actually prototype method, the program will new this object.