thanks you very much vlad.
The real problem are letters like "ā" and "ō" and some more.
Check the two queriesso you can see that the url in "messages" has the correct letters (ā,ō) but the "connections" has not. i deleted every guy except the problematic one (there are more)
because of that i was thinking to extract the name-surname in connections (that is the same of "to" in messages) and add the last part of url is there is one