Now using ensureBuffer for string decoding as well