Prevent tainting properties of RegExp (fixes #5)