Implement convert_to_long_base_safe IS_STRING properly so hex/octal not allowed