character to integer & vice versa conversions with custom base option