phosphor-hwmon: Fix unit escaping

We aren't correctly escaping all of the specical characters based on the
systemd spec for unit name escaping. systemd provides a utility to do
this reliably, so use that instead of a custom implementation.

Change-Id: Iaaa79b65858495ace1ff72a2d1a662fe318c117f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh b/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
index 2f35865..2e346d0 100755
--- a/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
+++ b/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
@@ -17,7 +17,8 @@
     fi
 fi
 
+# Needed to re-do escaping used to avoid bitbake separator conflicts
 path="${path//:/--}"
-path="${path//-/\\x2d}"
-
-systemctl --no-block $action 'xyz.openbmc_project.Hwmon@'$path'.service'
+# Needed to escape prior to being used as a unit argument
+path="$(systemd-escape "$path")"
+systemctl --no-block "$action" "xyz.openbmc_project.Hwmon@$path.service"