Adds support for writing strings.