Fix XHR file uploads in firefox (hopefully)