```max``` is the length reported back by measuring the actual conversion.  This check decides whether we need to pad the output or not.