Encode variable-width args as utf8 to appease struct.pack.