Enforcing UTF-8 encoding for the command output

Added as the integration test was failing with the error:

RuntimeError: \
`split': invalid byte sequence in UTF-8 (ArgumentError)