strings.c: replace copy_spaces, copy_chars with equivalent memset.