Added URI parse to URL to fix vulnerability