Converting strings representing numbers by any radix up to 16 into integers