avutil: change GET_UTF8 to not use av_log2()