Fix escaped str vs. bytes issue in quote
Use uppercase hex chars in quotes
Fix tuple decoding error in urisplit
Coerce values to str() before quoting