Thread:Extension talk:WYSIWYG/Spaces get encoded in wiki links

I'm using WYSIWYG with Mediawiki 1.17.5. The rich text editor converts spaces in wiki links to "%20", e.g. This is a link becomes This is a link. That's quite ugly. How to fix this behaviour?