Supply 'r' mode explicitly to DXFile in download_dxfile.