Quick hack to fix Content-Disposition header.

Added some tests for it as well, which pass. This might be the simplest solution to #39, although a "full" solution might have to wait until `library_split` is ready.