Fix creating url from string.