Improved titlecase/unTitlecase.

They are now sensitive to colons, periods, and other punctuation
marks after which the next character should be capitalized even
in sentence case.

Closes #1102.