Created utility to check if a byte[] is a valid string (otherwise it's binary).