Fix downloading epubs, pdfs, etc.