Workaround Python bug regarding url encode of UTF-8 input