Fixing error return to be consistent with tuple return at the end of the method.
Making sure we check for str/unicode.
Raising ValueError's when we're passed inconsistent POST data and files dict.
Fixing tests to verify thrown ValueError's.
Merge pull request #1503 from skastel/master

Fixing error return to be consistent with tuple return at the end of the method