awk: don't append bogus data after NUL in sub(); shrink