use unicode on error formatting

I got some problems with error internationalization because of encoding issue, so I fixed.