There were cases where we needed to encode things to codecs other than ascii. In these cases, python returns byte strings but we needed them to be unicode so that they serialize correctly later when we combine them with other unicode strings.