Modify ANSI functions to allocate intermediate Unicode strings on the