copy terminate character to buffer prior to sending