Added support for Buffers and strings.