writeCharacterStringElement

This template was moved from the main transform so that it could be
imported.