add urlencode function for pull requests