Add the possibility to convert message to bytes