pub(crate) fn validate_memory_filename(filename: &str) -> Result<(), String>
Validate a memory filename.