Use wide character stringstream for conversion (addition to previous commit).