Adding safe filename functions based off regex.