Ugly solution for escaping URLs in permlinks.