Core/messages: Hacky fix for NAMES / CUT.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit e604c5532277d0ab314818be46ac548f638fffb6)