Local fix for unicode failure during POST upload.

Force headers and url to type string.