AAPT2: Convert StringPool flattening to UTF-8

Convert StringPools in resources.arsc and binary XML files to use UTF-8
instead of UTF-16 to save lots of bytes.

Bug: 30053277
Change-Id: I8eb6c78644e51b15f89edadab71cc86f5a851a45
diff --git a/tools/aapt2/flatten/TableFlattener.cpp b/tools/aapt2/flatten/TableFlattener.cpp
index 5fbb0fe..6a35e8c 100644
--- a/tools/aapt2/flatten/TableFlattener.cpp
+++ b/tools/aapt2/flatten/TableFlattener.cpp
@@ -244,7 +244,7 @@
         StringPool::flattenUtf16(pkgWriter.getBuffer(), mTypePool);
 
         pkgHeader->keyStrings = util::hostToDevice32(pkgWriter.size());
-        StringPool::flattenUtf16(pkgWriter.getBuffer(), mKeyPool);
+        StringPool::flattenUtf8(pkgWriter.getBuffer(), mKeyPool);
 
         // Append the types.
         buffer->appendBuffer(std::move(typeBuffer));