fix for firefox blob -> array buffer and back again