Output messages in UTF-8 instead of encoding with the default locale

Change-Id: I33069ceb805e747c5e720bea922688d677ea7ff6