escape path as regexp