use BIO_snprintf() instead of snprintf + use BIO_FP_TEXT for text output