openssl: add handling for base 0 to new and to_s

Signed-off-by: Charles Oliver Nutter <headius@headius.com>