Fixes #4295: reworked message extraction for PO files