Minor fix to CodecUtils