Fix extraction of text in some files

Bug #78145