junit: do not loose encoding when test names is written to file (IDEABKL-5952)