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
Could this just be replaced with `.bytes().contains(0)`?