fixed a string handling bug
that occured when a message of length divisible by 8 was sent