Optimize some uses of stpcpy away.