Fixed URL encoding in check of existence