Fix model set escaped url

This PR offers a fix for the bug revealed in #326.

To prevent multiple URI escapes on urls, it firsts unescape the url and then escape it.