encoder: init filename to NULL