convert wstring into string when printing