Minor bug fixes and inhancement.

Fixed bti crashes when tweeting long unicode string.
Replace sprintf with snprintf to prevent BOF.
Stop tweeting when tweet length is over 140.