Add a safe file name method