Refactor syntax unicode listmessages