continue to json encode when not sending files
file upload test, improve test_remote's child-killing