Tinebase_Export_Doc - replace block replace implementation