Fix for setup.py TypeError

Setup.py was throwing the following error:
"TypeError: Type str doesn't support the buffer API"
Codecs returns a bytes object instead of a string object in Python3, and causes this error. This fix resolves this problem.