replace spaces in string with '%20'