Added the radix parameter (PR #1214)

Added the radix parameter to prevent unexpected behaviour while parsing a string.