feat: improve binary file handling
This improves in a few ways:
- binary file base class
- parse out filename following the MIME spec (and not using regex)
- removing extra (unnecessary) copies when computing the size of the file, or when writing to disk