def _encode(self, data):
        return data.encode('utf-8')
PDNS seems to ask for this quite a bit,
dataset/ETHPy150Open catkin/catkin_tools/catkin_tools/execution/io.py/IOBufferContainer._encode--crossover with--dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_pdns/core/polaris.py/Polaris.do_getDomainMetadata