Second version to avoid problems writing unicode to console in Windows