fix urlencode with non-ascii arguments