try url encoding cml script so it works via curl