Mechanism of transcription-coupled DNA modification recognition