avformat: factorize iso 8601 timestamp writer to a dictionary avutil function