Right. But ddwrt namespace has such function as UrlEncode.
{ddwrt:UrlEncode(yourlink)}
In case if you'll need to replace something not url related in SPDesigner:
concat(substring-before($MyVar,' '),'MyMightyReplacedString',substring-after($MyVar,' '))