In addition to note by yannikh at gmeil dot com, another way to decode strings with non-latin chars from unix console like
C=RU, L=\xD0\x9C\xD0\xBE\xD1\x81\xD0\xBA\xD0\xB2\xD0\xB0,
<?php preg_replace_callback('/\\\\x([0-9A-F]{2})/', function($a){ return pack('H*', $a[1]); }, $str); ?>
The code above will output:
C=RU, L=Москва,