Add typedefs for win32 utf-8 and utf-16 buffers

...and normalize the signatures of the two conversion functions.