Encode URI when rendering report template links #986