Re-added support for strings, so as not to return a buffer object