Replace unsafe C functions Proposal

To avoid UB, yes. Note that it can be made once in a scope somewhere.