@staticmethod<EOL><INDENT>def _encode_data(data):<DEDENT>
data = data if data is not None else {}<EOL>data = to_nested_php_args(data)<EOL>files = dict([<EOL>(key, value) for key, value in<EOL>data.items() if isinstance(value, file_type)])<EOL>for fname in files:<EOL><INDENT>del data[fname]<EOL><DEDENT>return data, files or None, None<EOL>
URL encode data.