minor fix in printChar utility