Bugfix: Open logfiles in binary mode

Text mode can lead to some automatic character conversions, which, if
UTF-8 is involved, can make the resulting data shorter than it was on
disk.  This would lead to the PUT request failing, because the sent data
is shorter than what was specified in the HTTP header.
Bugfix: Don't try to call a float (2)