Ensure docstrings are coerced into a string, in order to support translated strings.

Closes #1708