dbus: Use strdup instead of malloc+strncpy