fix tests
handle uploads of files with non-printable chars in its name

Non printable characters in filenames mess up multipart uploads.
Server prefers the filename from querry string, so if we send it we can
use a dummy name for multipart.