fix url-error when adding a tag with spaces