Replace space with underscore for Dbus Object Path

Currently code search for underscore and replace space in the
dbus object path , which construct invalid object path.This
Patch construct proper dbus object path by replacing space
with underscore.

Tested:
Verified that object path is created in proper format.

Change-Id: Ibdf18c13ce30aa007f165e1ccfe7f68e86d50c32
Signed-off-by: Yaswanth Reddy M <yaswanthx.reddy.munukuru@intel.com>
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index 2db8f86..ba63dc4 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -749,7 +749,7 @@
     BMCWEB_LOG_DEBUG << "Find Chassis: " << value << "\n";
 
     std::string escaped = value;
-    std::replace(escaped.begin(), escaped.end(), '_', ' ');
+    std::replace(escaped.begin(), escaped.end(), ' ', '_');
     escaped = "/" + escaped;
     auto it = std::find_if(managedObj.begin(), managedObj.end(),
                            [&escaped](const auto& obj) {