$cleaned_output = decode_utf8( $command_output ); $cleaned_output =~ s/\0//g;