fixed curl command, added --data-urlencode