Enforce filename restrictions