Fix a bug: "cannot redefine property:encoding"

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