Fix a bunch of unicode problems in logging.

print converts to ascii sometimes:
https://pythonhosted.org/kitchen/unicode-frustrations.html#frustration-3-inconsistent-treatment-of-output
Some things were getting double encoded.

Issue #168
Fix whitespace. #168
Write to log in binary mode.
Don't modify msg.
Merge pull request #169 from Floobits/bug/168/unicode_filename

Fix a bunch of unicode problems in logging.