This PR fixes the cli from breaking when it receives non utf8 encoded characters.
Notes
msgraph-cli was breaking when it received a response from mg mail user list-messages command. The failure was due to a byte string in the response that could not be decoded with utf-8 coding format. Changes in this PR try to decode the byte string, if the decoding fails, it ignores the byte string.
Purpose
This PR fixes the cli from breaking when it receives non utf8 encoded characters.
Notes
msgraph-cli was breaking when it received a response from
mg mail user list-messages
command. The failure was due to a byte string in the response that could not be decoded with utf-8 coding format. Changes in this PR try to decode the byte string, if the decoding fails, it ignores the byte string.