Fix the regexp issue.
Fix for ActiveSupport::SafeBuffer#gsub issue