Good thinking, but username & password do not contain any illegal characters, just [a-Z,0-9,=].
Furthermore, when I enable username/password check in my Domoticz software for local network and iso https://178.84.***.***:***** use http://192.168.178.20:3339 in the URL, the Macrodroid action...