Work around lack of Blob ctor support in phantomjs