Fixed compatibility issue with Java 6 and below in class Message.Utils