Add a function to convert a number to a av_malloced string.