Better error reporting
Don't override include param
Use simpler write calls
Run url_encoded after multipart