Fix chassis handler to use filename()

A common anti pattern is using endswith or contains.  This got
compounded recently because of https://github.com/openbmc/sdbusplus/issues/60
where filename now contains decoding logic.

This at least should fix the issue to make the Redfish tree walkable
again.

Tested:
Loaded up a WFP_Baseboard on qemu, and verified that
/redfish/v1/Chassis/WFP_Baseboard traversed correctly.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I55cc389a773e4b594668a4bca466efc33cc9cb7c
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 88f9fd7..e96a678 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -249,8 +249,8 @@
                     const std::vector<
                         std::pair<std::string, std::vector<std::string>>>&
                         connectionNames = object.second;
-
-                    if (!boost::ends_with(path, chassisId))
+                    sdbusplus::message::object_path objPath(path);
+                    if (objPath.filename() != chassisId)
                     {
                         continue;
                     }