Fix a few const, type and whitespace issues in utf8.h.
Fix tweet_log_line truncating by bytes instead of UTF-8 byte sequences.
This fixes partial UTF-8 byte sequences in logging output.