Fixes #19, #29, and eligrey/FileSaver.js#12