Update CMS platform to current platform code that adds a more complex

string truncation method.

See https://github.com/joomla/joomla-platform/pull/1413/

This has complete unit tests.