Edit: chardetect.py