Don't throw away mutability of `&mut str` in astconv

Closes #17361