Fix title capitalization

The `capitalize` filter in Liquid templates does not work on arrays.
It first converts arrays to string, and then capitalizes.

The `map` filter wouldn't work either, because it only maps properties.

Solution based on: http://stackoverflow.com/a/21829139/58808