Removed unused midasi history code.
Fix ASCII range check.
Fix boundary of binary search on file dict.