camera_metadata: Add support for embedding images into html/javadoc

- Also finishes specifying the lensShadingMap related fields

Bug: 12135317
Change-Id: I488f76db4650fcc4f8ce6d45e420217016837fbc
diff --git a/camera/docs/metadata_parser_xml.py b/camera/docs/metadata_parser_xml.py
index ec6957f..6772282 100755
--- a/camera/docs/metadata_parser_xml.py
+++ b/camera/docs/metadata_parser_xml.py
@@ -247,6 +247,8 @@
     The template gets the metadata as an argument, as well as all
     public attributes from the metadata_helpers module.
 
+    The output file is encoded with UTF-8.
+
     Args:
       template: path to a Mako template file
       output_name: path to the output file, or None to use stdout
@@ -271,7 +273,7 @@
     if output_name is None:
       print tpl_data
     else:
-      file(output_name, "w").write(tpl_data)
+      file(output_name, "w").write(tpl_data.encode('utf-8'))
 
 #####################
 #####################