Using std::string instead of char* in mdadm helper.

Authored by cjlcarvalho on Aug 27 2018, 11:21 AM.