Safeguard win32 string operations with _TRUNCATE