Use byte arrays instead of strings when writing the message