More encoding checks for generating messages with type message/*