For those who have encoding trouble with this command, you can replace :
php -r 'echo html_entity_decode( file_get_contents("/dev/stdin"), ENT_QUOTES );'
by :
php -r 'echo utf8_encode(html_entity_decode( file_get_contents("/dev/stdin"), ENT_QUOTES ));'
in the Bundle Editor.

        Urbanose