Titles in all references.

Put titles last to avoid processing their contents.

Realize to my shock and horror that mb_substr and substr have
different semantics for empty strings.