Maybe we should make an object to hold the BIO + char *?