Fixed URL string copy bug in url_add