Return a string fullname instead of an integer id for first_message in MessageJsonTemplate

Fixes #663.