Fix maxlength issue in new message input.