Fix issue where last character was truncated, due to not account for a terminator.