PYTHON-346 - Use codecs for all string decoding/encoding.