ensure message is a string before splitting