encode as utf-8 before putting on the wire