resolving URL syntax errors