Correctly handle multipart data

This fix is based on makkeus changes noted in this issue:

https://github.com/danwrong/restler/issues/80