(Bug 43724) Declare UTF8 encoding on logfile output

logging.StreamHandler.emit will default to UTF-8 if
sys.std(out|err).encoding is something other than UTF-8 and encoding to
that something other fails. When logging to file, we need to be
explicit.

Change-Id: I15fcd682691ba71c365bf27a3f1846592bd7a12f