explicity encode message size