Pelican blogging framework port of Stuart Colville's titlecase (based on original titlecase.pl by John Gruber of www.daringfireball.net)