fixing utf8 bug in print