URLencoding for spaces in curl methods