Minor cleanup of the RexExp used to escape string literals.