Fix CMD output when using shell_exec() from PHP

/**
 * Fix weird output encoding.
 */
function run_command( $command ) {
    $string = shell_exec( $command );
    $string = mb_convert_encoding( $string, 'UTF-8', 'UTF-16LE' );

    return $string;
}