OK these are all tracked down and fixed now I believe. jinja's urlencode seems to be doing this to strings, which is surprising to me? I thought only urlencode_plus did that.