Convert message to string

Closes #404.