debuginfo: Fix issue with DWARF compile unit names

Fixes #11600