There are several important regression in uchardet to 0.0.6. Hence this revert. This reverts commit bfb7e863cc6cd20f9f32389bee289607a212b12b. Fix #5299, fix #5310, fix #5202, fix #5440 Close #5414