ensure message is fully encode