ifdef isValidDBusObjectPathCharacter
It is only relevant if we build with dbus
(cherry picked from commit a2bcedd0a3e215aa48faaeadc778c5e9c789d43c)