BIFScanner: Make filename->symbol transformation more robust

When trying to build bro from a path that contained a plus sign, an
invalid symbol name for the #ifdef guard was generated.