apply __encode_inner before urllib.urlencode to handle unicode parameters properly

because urllib.urlencode is not able to handle dicts contain unicode keys or values