Added UTF-8 output support