There is an issue with this script. If the URL contains a + the bot doesn't return any of the url beyond that (and so breaks it).
How to fix, please?