Updated to bufferToString to fix overflow issue.