Fix urls with paths followed by a comma

URLS with paths followed by a comma, such as "http://t.co/12ab3, something" were including the final comma as part of the path