A user-defined file encoding detection function for AutoIt v. 3.2.12.1.