enable to write .pu files in utf-8

This fixes the error when test case name in .pu file is written in utf-8 multibyte string.