Secure the filename and set it before using it