fixed space and special characters on URL

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