replaced MultiByteToWideChar calls by my wrappers