Squashed 'plugin/floo/common/' changes from 58781e2..7244341

7244341 Merge branch 'master' into new_stomp_ui
997ff6a Don't modify msg.
7eb7a8c Write to log in binary mode.
fe105bb Fix whitespace. #168
8a79a78 Fix a bunch of unicode problems in logging.
1331354 Fix string format.
2870d0b Fix exception when uploading an already-existing file.
db9ff66 Cleaner upload function. Send the correct data when stomping. Don't md5 buffers unnecessarily.
892af1f Only return if text is none.
17b24a5 Work-around python 3 encoding.

git-subtree-dir: plugin/floo/common
git-subtree-split: 724434195894b1183cfd7f8527071fc8fe939bb6
Merge commit '8da5e6dd492c8a4fb55e76eaf8f916d23af9d833' into new_stomp_ui
Pep8