strip off the buffer from a 1024k length message