StreamGenerator: Fix output encoding

Re-applies https://github.com/rdio/vernacular/commit/15e769b267 to fix
output encoding. In particular this fixes generating UTF-16 strings files
for iOS.
ParserTests: Fix a syntax error