Pass exceptions in async workers back to the main thread
Add unicode case conversion functions to the automation module
Fix writing files as non-utf-8