add toSafeFileName