Added uri template function to URI-escape output.