percent-encode URL to fix markup