urlencode special paths so they match with the event's uri's