Fix issue with dashes in fru names

Replace dashes and spaces with underscores.

Change-Id: I94f66f576e1443de46e6c2eb5ca73f52bd79169b
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index f0de41c..e247db7 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -301,7 +301,7 @@
                     return false;
                 }
                 std::string commandStr = *(match.begin() + 1);
-                commandStr = boost::replace_all_copy(commandStr, "'", "");
+                boost::replace_all(commandStr, "'", "");
                 cur = (std::find(PASSED_PROBES.begin(), PASSED_PROBES.end(),
                                  commandStr) != PASSED_PROBES.end());
                 break;
@@ -318,8 +318,8 @@
             }
             std::string commandStr = *(match.begin() + 1);
             // convert single ticks and single slashes into legal json
-            commandStr = boost::replace_all_copy(commandStr, "'", R"(")");
-            commandStr = boost::replace_all_copy(commandStr, R"(\)", R"(\\)");
+            boost::replace_all(commandStr, "'", R"(")");
+            boost::replace_all(commandStr, R"(\)", R"(\\)");
             auto json = nlohmann::json::parse(commandStr, nullptr, false);
             if (json.is_discarded())
             {