Fixed text encoding for win version.

The error message was constructed using a utf-8 function to be shown
correctly in the win version.