specify byte encoding for messages

Using String#getBytes without specifying the encoding will use the system default.  Since this might change (maybe unexpectedly) we'll be explicit about the encoding.