fixed space amd special characters on URL

fixed when an URL had a space or a special character such as ã