Add method to replace spaces with '%20'