Web Inspector: Use URL constructor to better handle all kinds of URLs