fix percent character in URLs

Unicode characters are not valid in hyperlink targets.  They lead to broken hyperref output in the LaTeX transform and need to be percent-escaped.  Percent-escaping in XSLT seems difficult, but if they are escaped at the source, this fix makes sure they are escaped in LaTeX correctly.