Fix bug when url contains spaces.