fixes issue #65 (unsafe regex)