This avoids an encode() call for each of these constants. Use a custom 2to3 fixer in setup.py to perform the conversion.