fanSensor: Fix pwmsensors space-naming probe error

The rule of sensors' name in dbus-sensor should ignore the discrepancy
by changing all spaces to underscores. However, pwmName in pwmsensors
doesn't undergo the process before construction.

Add escapePathForDbus() to change " " to "_" and prevent fansensor
from receiving an invalid argument error.

Tested:
Get fan pwm/tach by dbus introspect

Change-Id: I0489b03ffd105218e7492cf732eecadee57b08cd
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/src/PwmSensor.hpp b/src/PwmSensor.hpp
index f70079b..63970ca 100644
--- a/src/PwmSensor.hpp
+++ b/src/PwmSensor.hpp
@@ -10,7 +10,7 @@
 class PwmSensor
 {
   public:
-    PwmSensor(const std::string& name, const std::string& sysPath,
+    PwmSensor(const std::string& pwmname, const std::string& sysPath,
               std::shared_ptr<sdbusplus::asio::connection>& conn,
               sdbusplus::asio::object_server& objectServer,
               const std::string& sensorConfiguration,