finally got copying unicode to work. replaced all strings with wstrings