changed from url encode to rawurlencode