getnames, register name sanitization, --strdup