Added support for Buffers and strings.

Pull request on gh-pages branch coming shortly.