Fixed string formatting in the length validator

The length validator would return 
'Value must be no more than %(max)d characters long'
without substituting min/max. Replacing with new style string formatting has fixed this.