Automatically encode binary/buf arguments when sending to server