Fixes #379 Static plugin: NotAuthorizedError for file path with parentheses

Preemptively, also escapes other characters used in regular expressions.