The `str()` is redundant here, encode will spit an str always.