printUtf8 and printAscii to string