Fix bug on url with whitespace

Fix bug on url with whitespace