Change to use 'encode' parameter to avoid deprecated multipart parameter.
Fix parameter name to eliminate warning message.