Fix a bug: "cannot redefine property:encoding"

I found your code in line 403 didn't construct the `TextDecoder` object, it means that you do define "encoding" property one by one, then it will throw the error.