Determines if a buffer is comprised of text or binary