Fix invalid path handling in cStatic.

Invalid UTF-16 conversion for Windows.