Python Port of John Gruber's titlecase.pl
