lkgm_manager: Fix the encoding issue when writing strings to manifest

Exceptions are threw in the lkgm_manager when writing strings to
manifest.xml. This change fixes it by encoding the strings before
writing.

BUG=None
TEST=Test with unittest and fake string with unicode.

Change-Id: I27246a58bb00fb6856de28152336ba2998f9af7b
Reviewed-on: https://chromium-review.googlesource.com/296322
Commit-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
2 files changed