url-string utility function