Character encoding auto-detection in Python for Python 2.x.