Fixes unicode output when run as a library.

This fixes a regression where output for the 'cflags' command would not be
unicode when 'bdemeta' is used as a library.