file mode regex is overly restrictive