Fix httpmultiparty bug when passing Pathname object.