todo comment on TextDecoder