You now have to URL encode the value you put into the text= parameter of the URL. For example space " " must be replaced with "%20", ":" should also be replaced with "%3A" etc...
Also probably whatever you have in $uptime if that also contains special characters it will also need to be URL encoded. Because you are still using RouterOS 6, you'll need to either do that manually, or write a function that does the URL encoding. Some examples from the forum:
Hi everyone!
Thanks to everyone who responded to my question.
I followed CGGXANNX's advice.
I corrected the `tool fetch url` line as shown in the image, and everything started working.