Replaced Windows-specific tchar/string functionality.