Looking at `TextIO`, you don't need the `asbytes`, it is done for you.