BF: fix conversion from string to unsigned int for max_iterations

the original implementation used 'atoi' to set uint32_t max_iterations, while 'atoi' returns a signed int.