GH79: Use const for messages in custom validators

Reviewed and approved. Please, merge to master.