[Android] Fix the encode error for writing DBCS.

This patch is to fix the encode error for writing description with
DBCS and name is not defined error.
In python3, "unicode" is deprecated, the value should not be encoded.

BUG=BUG=XWALK-2382, XWALK-2398
Merge pull request #2352 from wuhengzhi/encode_error_description

[Android] Fix the encode error for writing DBCS.
[Android] Fixed calling extensionManager's onPause() and onResume() at wrong places

Call extensionManager's activity life cycle related codes in
onActivityStateChange. For now its onPause() is called with
ActivityState.STOPPED and onResume() is called with
ActivityState.STARTED, which are wrong.