Escape the id on the download query
Re #99, fixing the content type of the download