Use 'utf8' encoding to write log file
Use 'utf8' encoding to write log file

If the OS like Win10 code page is NOT  'utf8', it will throw encoding error when calling print_control_identifiers() function for some circumstance, add encoding to fix this issue.
vasily-v-ryabov/pywinauto,drinkertea/pywinauto,airelil/pywinauto,pywinauto/pywinauto