Strutil::safe_strcpy -- like strncpy, but copies terminating 0 char.

And fix several places where strcpy might be unsafe or have buffer overrun.