Removed buffer-to-text conversion to support binary data.