Improve file size pretty-printing code

To test, to images try attaching files of different sizes and make sure in the tooltip they are described reasonably.

(In particular, small files should now have integer numbers of bytes, with no ".0" suffix.)