Interpret percent values as unsigned int.

Otherwise they might overflow into negative values.