Fix segfault when trying to strdup defaults