This Windows API attempts to guess if a buffer contains unicode text or not:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81np.asp
Very useful!