Fixes RegExp escape.