fix output with unicode characters

(RHBZ#1052342)