Fixed export issue w.r.t. file where corresponding mime does *not* start with `text` (e.g. `application/xml`). Import issue still a problem though!