Work with wide characters "correctly"