client: Check that strings passed to D-Bus to contain valid chars