Fix bug on url with whitespace