Ok, i added a filter like this:
add_filter( 'amazon_link_url', array( $this, 'apply_url_encode' ), 21, 1 );
and then the actual function:
function apply_url_encode($string) {
return rawurlencode($string);
}
and it works as it should.
Now what about adding a new keyword like %URL_ENCODED%?
would it be too complicated?
Thank you