normalize and escape regex to properly filter. fixes #78