Fix ICE from null character

Add checks for null bytes in the value strings for the export_name and link_section attributes, reporting an error if any are found, before calling with_c_str on them.

Fixes #16478
Yeah, I'm waiting for the change to finish a pass through make check, just to be thorough.