handle all text/* and office documents the same way