Updated conversion utilities to use libctf functions