Fix bug in proxy when URL has no protocol