Encode output using utf-8